package com.jgzx.feign;

import com.jgzx.common.R;
import com.jgzx.constant.ServiceConstants;
import com.jgzx.domain.IdDTO;
import com.jgzx.domain.vo.EnterprisePublicityVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author libo
 * @date 2021/11/6 18:56
 */
@Primary
@FeignClient(contextId = "enterprisePublicityFeignClient", value = ServiceConstants.DEMO_SERVICE)
public interface EnterprisePublicityFeignClient {

    /**
     * 获取企业宣传视频
     *
     * @param idDTO 企业主键DTO
     */
    @PostMapping("/publicity/getEnterprisePublicityByEnterpriseId")
    R<List<EnterprisePublicityVO>> getEnterprisePublicityByEnterpriseId(@RequestBody IdDTO idDTO);

}
